package model

import (
	"../db"
	"github.com/jinzhu/gorm"
)

var mydb *gorm.DB
var kvdb *db.KVManager

func init() {
	mydb = db.GetInstance()
	kvdb = db.GetKVInstance()
	var user User
	var group Group
	var tag Tag
	var question Question
	var answerOption AnswerOption
	var bank Bank
	var category Category
	var options QuestionAnswerOptions
	var records BankRecords
	var questionRecords QuestionRecord
	var favoritesQuestions QuestionFavorites
	var feedback Feedback
	mydb.AutoMigrate(&user, &group, &bank, &tag, &category, &question, &answerOption, &options, &records, &questionRecords, &favoritesQuestions, &feedback)
}
